import threading
threads = []
threads.append(threading.Thread(target=c.test,args=()))

for t in threads:
    t.setDaemon(True)
    t.start()
for t in threads:
    t.join()

def asyncThread(func,args):
    t = threading.Thread(target=func,args=(args,))
    t.setDaemon(True)
    t.start()